package com.jf.cloud.product.bo.mongo;

import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 对应MongoDB存储出入库日志emp
 * @author zz
 */
@Document("stock_bill_log")
@CompoundIndexes({
        @CompoundIndex(name = "id_idx", def = "{'stockBillLogId':1}", unique = true)
})
public class MongoStockBillLogBO {

    @Id
    @Schema(description = "出入库明细id" )
    private Long stockBillLogId;

    @Schema(description = "出入库单号" )
    private String stockBillNo;

    @Schema(description = "关联订单号" )
    private String sourceOrderNo;

    @Schema(description = "单据类型" )
    private Integer stockBillType;

    @Schema(description = "创建时间" )
    private Date createTime;

    @Schema(description = "更新时间" )
    private Date updateTime;

    @Schema(description = "出入库原因id" )
    private Long stockChangeReasonId;

    @Schema(description = "操作员工id" )
    private Long employeeId;

    @Schema(description = "状态，0：已作废，1：已出/入库，2：待提交" )
    private Integer status;

    @Schema(description = "出入库时间" )
    private Date businessTime;

    @Schema(description = "总出入库数量" )
    private Integer totalCount;

    @Schema(description = "总出入库金额" )
    private Long totalAmount;

    @Schema(description = "出入库凭证" )
    private String qualifications;

    @Schema(description = "店铺id" )
    private Long shopId;

    @Schema(description = "供应商id" )
    private Long supplierId;

    @Schema(description = "备注" )
    private String remark;

    @Schema(description = "类型，1：出库 2：入库" )
    private Integer type;

    @Schema(description = "制单人手机号" )
    private String makerMobile;

    @Schema(description = "制单人姓名" )
    private String makerName;

    public String getMakerName() {
        return makerName;
    }

    public void setMakerName(String makerName) {
        this.makerName = makerName;
    }

    public Long getStockBillLogId() {
        return stockBillLogId;
    }

    public void setStockBillLogId(Long stockBillLogId) {
        this.stockBillLogId = stockBillLogId;
    }

    public String getStockBillNo() {
        return stockBillNo;
    }

    public void setStockBillNo(String stockBillNo) {
        this.stockBillNo = stockBillNo;
    }

    public String getSourceOrderNo() {
        return sourceOrderNo;
    }

    public void setSourceOrderNo(String sourceOrderNo) {
        this.sourceOrderNo = sourceOrderNo;
    }

    public Integer getStockBillType() {
        return stockBillType;
    }

    public void setStockBillType(Integer stockBillType) {
        this.stockBillType = stockBillType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getStockChangeReasonId() {
        return stockChangeReasonId;
    }

    public void setStockChangeReasonId(Long stockChangeReasonId) {
        this.stockChangeReasonId = stockChangeReasonId;
    }

    public Long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Long employeeId) {
        this.employeeId = employeeId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getBusinessTime() {
        return businessTime;
    }

    public void setBusinessTime(Date businessTime) {
        this.businessTime = businessTime;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Long getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Long totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getQualifications() {
        return qualifications;
    }

    public void setQualifications(String qualifications) {
        this.qualifications = qualifications;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getMakerMobile() {
        return makerMobile;
    }

    public void setMakerMobile(String makerMobile) {
        this.makerMobile = makerMobile;
    }

    @Override
    public String toString() {
        return "MongoStockBillLogBO{" +
                "stockBillLogId=" + stockBillLogId +
                ", stockBillNo='" + stockBillNo + '\'' +
                ", sourceOrderNo='" + sourceOrderNo + '\'' +
                ", stockBillType=" + stockBillType +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", stockChangeReasonId=" + stockChangeReasonId +
                ", employeeId=" + employeeId +
                ", status=" + status +
                ", businessTime=" + businessTime +
                ", totalCount=" + totalCount +
                ", totalAmount=" + totalAmount +
                ", qualifications='" + qualifications + '\'' +
                ", shopId=" + shopId +
                ", supplierId=" + supplierId +
                ", remark='" + remark + '\'' +
                ", type=" + type +
                ", makerMobile='" + makerMobile + '\'' +
                ", makerName='" + makerName + '\'' +
                '}';
    }
}
